<ul class="personList">
    <?php

    $i=1;
    if(!empty($users)) foreach($users as $user){
    ?>
        <li<?php echo $i<3 ? ' class="p'.$i.'"' : ''?>>
            <div class="person"> <img width="85" height="109" src="<?php echo $user->p->pphoto;?>">
                <p class="black"><a href="<?php echo $this->createUrl('users/index', array('id'=>$user->id));?>"><?php echo $user->p->nickname;?></a></p>
                <p><?php echo $user->p->job;?></p>
            </div>
        </li>
    <?php
        $i++;
    } ?>
    <div class="clear"></div>
</ul>